20. Quiz: Laugh (5-4)
Directions:
Write an anonymous function expression that stores a function in a variable called "laugh" and outputs the number of "ha"s that you pass in as an argument.
laugh(3);
Returns: hahaha!
Your Code:
Start Quiz:
/*
* Programming Quiz: Laugh (5-4)
*/
var laugh = /* finish the function expression */
console.log(laugh(10));
INSTRUCTOR NOTE:
Have questions? Head to Knowledge for discussion with the Udacity Community.